package com.leruan.aasimp.service.impl;

import java.util.List;
import java.util.Map;

import com.leruan.aasimp.dao.CarBeddingDao;
import com.leruan.aasimp.entity.CarBedding;
import com.leruan.aasimp.service.CarBeddingService;

public class CarBeddingServiceImpl implements CarBeddingService {
	private CarBeddingDao CarBeddingDao;


	public CarBeddingDao getCarBeddingDao() {
		return CarBeddingDao;
	}


	public void setCarBeddingDao(CarBeddingDao carBeddingDao) {
		CarBeddingDao = carBeddingDao;
	}


	public List<CarBedding> findall() {
		return CarBeddingDao.findAll();
	}


	public void addLp(CarBedding carBedding) {
		CarBeddingDao.addLp(carBedding);
		
	}


	public CarBedding findById(long idBedding) {
		return CarBeddingDao.findById(idBedding);
	}


	public void update(CarBedding carBedding) {
		CarBeddingDao.update(carBedding);
		
	}


	public void delete(CarBedding carBedding) {
		CarBeddingDao.delete(carBedding);
	}


	public List<CarBedding> getByList(Map<String, String> map, int pageNo) {
		return CarBeddingDao.getByList(map,pageNo);
	}


	public Long getTotal(Map<String, String> map) {
		return CarBeddingDao.getTotal(map);
	}

}
